
<div class="search">
<input type="text" [(ngModel)]="keyWord"/> <button (click)="doSearch()">搜索</button>
<hr>
<ul>
    <li *ngFor="let item of historyList;let key = index;">{{item}} ----<button (click)="doDelete(key)">X</button></li>
</ul>
</div>